package com.ymatou.iapi.messageroute.parameter;
import java.util.Date;

import org.springframework.data.mongodb.core.mapping.Field;
public class MsgItem {
	/**
	* 消息类型（1-Sms 2-Im 3-Weixin）
	*/
	@Field("msgTp")
	private int msgTp;

	/**
	 * 消息体
	 */
	@Field("msgBody")
	private String msgBody;

	/**
	 * 预期执行时间
	 */
	@Field("dueTm")
	private Date dueTime;

	/**
	 * 实际已执行次数
	 */
	@Field("execNum")
	private int execNum;

	/**
	 * 最大可重试次数(默认为：0，0表示不可重试，大于0表示可重试)
	 */
	@Field("maxRetryNum")
	private int maxRetryNum;

	/**
	 * 是否执行成功
	 */
	@Field("success")
	private boolean success;

	/**
	 * 最后执行时间
	 */
	@Field("execTm")
	private Date execTime;

	public int getMsgTp() {
		return msgTp;
	}

	public void setMsgTp(int msgTp) {
		this.msgTp = msgTp;
	}

	public String getMsgBody() {
		return msgBody;
	}

	public void setMsgBody(String msgBody) {
		this.msgBody = msgBody;
	}

	public Date getDueTime() {
		return dueTime;
	}

	public void setDueTime(Date dueTime) {
		this.dueTime = dueTime;
	}

	public int getExecNum() {
		return execNum;
	}

	public void setExecNum(int execNum) {
		this.execNum = execNum;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public Date getExecTime() {
		return execTime;
	}

	public void setExecTime(Date execTime) {
		this.execTime = execTime;
	}

	public int getMaxRetryNum() {
		return maxRetryNum;
	}

	public void setMaxRetryNum(int maxRetryNum) {
		this.maxRetryNum = maxRetryNum;
	}
}
